// TypeScript file
class BackGroudView extends egret.Sprite
{
    constructor(num: number)
    {
        super();
        this.initView(num);
    }

    private initView(num: number): void
    {
        let name: string = "fight" + num + "Bg_png";
            
        let bg: egret.Bitmap = ResourceUtils.createBitmapByName(name);
        this.addChild(bg);

        let leftWall: Hinder = new Hinder(num, 1);
        let rightWar: Hinder = new Hinder(num, 2);
        this.addChild(rightWar);
        this.addChild(leftWall);
        
        rightWar.x = Const.SENT_WIDTH - rightWar.width;
    }

}